package com.appbee.news.client;

import javax.inject.Inject;
import javax.inject.Provider;

import com.appbee.news.shared.NewsRequestFactory;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.shared.EventBus;

public class NewsRequestFactoryProvider implements Provider<NewsRequestFactory>
{
	private final NewsRequestFactory rf = GWT.create(NewsRequestFactory.class);
	@Inject
	public NewsRequestFactoryProvider(EventBus eventBus)
	{
		rf.initialize(eventBus);
	}
	
	@Override
	public NewsRequestFactory get()
	{
		return rf;
	}

}
